<div id="titulo">Agregar Compa&ntilde;&iacute;a</div>
<?php echo form_open_multipart('companiacarpetas/save', array('name' => 'estatus','id' => 'commentForm'));?>
	<table class="tablaform" width="100%" border="0">
		<tr>
			<td><b>Refer&eacute;ncias:</b> </td>
			<td><input type="text" name="name" class="required" id="name" maxlength="100" size="40" value="<?php echo set_value('nombre') ?>" /><?php echo form_error('name') ?></td>
		</tr>
		
	     <tr>
			<td><b>Apellido:</b> </td>
			<td>
			   <select class="required" name="apellido">
			      <option></option>
			      <?php foreach ($apellido as $k):?>
			      <option value="<?php echo $k->getIdApellido()?>"><?php echo $k->getDescripcionApellido()?></option>
			      <?php endforeach;?>
			   </select>
			</td>
		</tr>
        
		  <tr>
    <td><b>Fecha</b></td>
 	<td><input id="date" class="required" name="date"><script type="text/javascript">
  	$(function()
  	{
  		
     	 $("#date").datepicker({ });
  	});
	</script>
	</td> 
    </tr>
      <tr>
    <td><strong>Idioma</strong></td>
    <td>
		<select name="idioma" style="width:180px" id="responsable" class="required">
		<option value="3" >Espanol</option>
	     <option value="2" >Ingles</option>
		</select>
	</td>
    </tr> 
    
    
     <tr>
    <td><strong>Status Compa&ntilde;&iacute;as</strong></td>
    <td>
		<select name="status" style="width:180px" id="responsable" class="required">
		<option value="" >Seleccione Status</option>
		<?php
		foreach ($status as $responsable)
		{
		?>
		<option value="<?php echo $responsable->getIdProceso(); ?>"><?=$responsable->getDescriccion();?></option>
		<?php	
		}
		?>
		</select>
	</td>
    </tr> 
	 
    
    
     	<tr><td colspan="2"><hr /></td></tr>
		<tr>
		   <td><input type="submit" value="Guardar" /></td>
		   <td><a href="<?php echo site_url().'/companiacarpetas' ?>"><input type="button" value="Atras" align="center"/></a></td>
		   </tr>
	</table>
</form>